package com.cheejee.goodscenter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cheejee.goodscenter.module.entity.Category;
import com.cheejee.goodscenter.module.entity.GoodsCustomProperties;
import com.cheejee.goodscenter.module.entity.SkuCustomProperties;
@Mapper
public interface SkuCustomPropertiesMapper {
    int deleteByPrimaryKey(Long id);

//    int insert(SkuCustomProperties record);

    int insertSelective(SkuCustomProperties record);

    SkuCustomProperties selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SkuCustomProperties record);

//    int updateByPrimaryKey(SkuCustomProperties record);
    
	// ################ 以上为mybatis generator生成 #####################

	List<Category> selectBySelective(@Param("skuId") Long skuId, @Param("propertiesName") String propertiesName);

	int deleteById(@Param("id") Long... id);

	/**
	 *
	 * @param properties
	 * @return
	 */
	int insertMany(@Param("properties") List<SkuCustomProperties> properties);

	/**
	 *
	 * @param skuId
	 */
	int deleteBySkuId(Long skuId);


}